using System.Collections.Generic;
using UnityEngine;

public class AllKillAchievements : MonoBehaviour
{
	[HideInInspector]
	public static AllKillAchievements instanse;

	[Header("Simple Kill Achievements")]
	public List<KillAchievement> simpleKillAchievements;

	private void Awake()
	{
		instanse = this;
	}

	private void Start()
	{
		InitializeAllAchievements();
	}

	public void CheckAllAchivments(KillInfo killInfo)
	{
		foreach (KillAchievement allKillAchievement in AchievementsManager.instanse.allKillAchievements)
		{
			if (allKillAchievement.CheckAchievement(killInfo))
			{
				allKillAchievement.Increment();
			}
		}
	}

	public void InitializeAllAchievements()
	{
		foreach (KillAchievement simpleKillAchievement in simpleKillAchievements)
		{
			simpleKillAchievement.Init();
		}
	}
}
